package com.xh.one2one.lesson.dao;

import com.xh.one2one.lesson.bean.dto.LessonInfoDto;
import com.xh.one2one.lesson.bean.dto.LessonSummaryDto;
import com.xh.one2one.lesson.model.LessonInfo;
import com.xh.one2one.lesson.model.LessonSummary;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * 教学总结 Mapper 接口
 * </p>
 *
 * @author TW
 * @since 2021-05-06
 */
public interface LessonSummaryMapper extends BaseMapper<LessonSummary> {
    List<String> selectStudentIdByLessonThirdId(String lessonThirdId);

    LessonSummaryDto selectErrorQuestionCount(@Param("lessonThirdId")String lessonThirdId, @Param("studentId")String studentId);

    LessonInfoDto queryGroupClassEvaluate(@Param("bean")LessonInfo bean);

    int updateLessonSummary(@Param("bean")LessonSummary lessonSummary);
}
